<!DOCTYPE HTML>
<!--
	Dimension by HTML5 UP
	html5up.net | @ajlkn
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
 <head>
  <title>
   Dimension by HTML5 UP
  </title>
  <!-- <meta charset="utf-8" /> -->
  <!-- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> -->
  <meta charset="utf-8"/>
  <meta content="width=device-width,initial-scale=1.0" name="viewport"/>
  <link href="../../assets/css/article.css" rel="stylesheet"/>
  <link href="https://cdn.bootcss.com/highlight.js/9.15.8/styles/github.min.css" rel="stylesheet"/>
  <noscript>
   <link href="../../assets/css/noscript.css" rel="stylesheet"/>
  </noscript>
 </head>
 <body>
  <div id="app">
  </div>
  <!-- built files will be auto injected -->
 </body>
 <body class="is-preload">
  <!-- Wrapper -->
  <div id="wrapper">
   <!-- Main -->
   <div id="main">
    <article id="article">
     <h1 id="github-host">
      Github Host 访问加速
     </h1>
     <hr/>
     <h2 id="_1">
      简介
     </h2>
     <p>
      在国内众所周知的访问git的速度贼慢，有时候图片也加载不出来，本文就介绍如何通过配置host文件，加速访问GitHub
     </p>
     <h2 id="host">
      配置Host加速访问
     </h2>
     <h3 id="host_1">
      获取Host
     </h3>
     <p>
      访问下面的链接，下载最新的Host，楼主是个好人
     </p>
     <ul>
      <li>
       <a href="https://cdn.jsdelivr.net/gh/521xueweihan/GitHub520@main/hosts">
        https://cdn.jsdelivr.net/gh/521xueweihan/GitHub520@main/hosts 作者：Acwinuxos系统 https://www.bilibili.com/read/cv10607526 出处：bilibili
       </a>
      </li>
     </ul>
     <h3 id="host_2">
      配置Host
     </h3>
     <p>
      将内容放到host文件的最后面，对应的系统的host文件位置如下，记得使用管理员权限：
     </p>
     <ul>
      <li>
       Windows 系统：C:\Windows\System32\drivers\etc\hosts
      </li>
      <li>
       Linux 系统：/etc/hosts
      </li>
      <li>
       Mac（苹果电脑）系统：/etc/hosts
      </li>
      <li>
       Android（安卓）系统：/system/etc/hosts
      </li>
      <li>
       iPhone（iOS）系统：/etc/hosts
      </li>
     </ul>
     <p>
      默认配置完就生效的，如果没有生效，运行下面的命令：
     </p>
     <ul>
      <li>
       Windows：在 CMD 窗口输入：ipconfig /flushdns
      </li>
      <li>
       Linux 命令：sudo rcnscd restart
      </li>
      <li>
       Mac 命令：sudo killall -HUP mDNSResponder
      </li>
     </ul>
     <h2 id="_2">
      参考链接
     </h2>
     <ul>
      <li>
       <a href="https://www.bilibili.com/read/cv10607526">
        github直连访问方法，长期更新的github hosts
       </a>
      </li>
     </ul>
    </article>
   </div>
   <!-- Footer -->
   <footer id="footer">
    <p class="copyright">
     © Untitled. Design:
     <a href="https://html5up.net">
      HTML5 UP
     </a>
     .
    </p>
   </footer>
  </div>
  <!-- BG -->
  <div id="bg">
  </div>
  <!-- Scripts -->
  <script src="../assets/js/jquery.min.js">
  </script>
  <script src="../assets/js/browser.min.js">
  </script>
  <script src="../assets/js/breakpoints.min.js">
  </script>
  <script src="../assets/js/util.js">
  </script>
  <script src="../assets/js/main.js">
  </script>
 </body>
</html>
